package com.jy.rhin.support.interceptor;
import org.apache.cxf.ext.logging.event.EventType;
import lombok.Getter;

/**
 * 保存审计记录事件
 * @author liweiwei
 */
@Getter
public class SaveAuditInfoEvent {

    public SaveAuditInfoEvent(EventType type) {
        this.xml = WsXmlThreadLocal.getXml();
        this.data = WsXmlThreadLocal.getData();
        this.cached = WsXmlThreadLocal.hasCached();
        this.method = WsXmlThreadLocal.getMETHOD();
        this.type = type;
        this.requestData = WsXmlThreadLocal.getREQUEST_DATA();
        WsXmlThreadLocal.clear();
    }

    Object requestData;
    String xml;
    Object data;
    boolean cached;
    String method;
    EventType type;
    

}